const Report = require('../models/report')

exports.add = function (data, callback) {
  let {number, deviceNumber, deviceName, time} = data
  Report.create({number, deviceName, deviceNumber, time}).then(report => {
        callback(report.get({
            plain: true
        }));
    })
}
